
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGPolygonBackground.h>
#include <OpenSG/OSGPolygonBackgroundBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PolygonBackground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_PolygonBackground()
{
    scope* osg_PolygonBackgroundBase_scope = new scope(
    class_< osg::PolygonBackgroundBase, bases< osg::Background > , boost::noncopyable >("PolygonBackgroundBase", no_init)
//        .def_readonly("MaterialFieldMask", &osg::PolygonBackgroundBase::MaterialFieldMask)
//        .def_readonly("TexCoordsFieldMask", &osg::PolygonBackgroundBase::TexCoordsFieldMask)
//        .def_readonly("PositionsFieldMask", &osg::PolygonBackgroundBase::PositionsFieldMask)
//        .def_readonly("NormalizedXFieldMask", &osg::PolygonBackgroundBase::NormalizedXFieldMask)
//        .def_readonly("NormalizedYFieldMask", &osg::PolygonBackgroundBase::NormalizedYFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::PolygonBackgroundBase::MTInfluenceMask)
        .def("getClassType", &osg::PolygonBackgroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::PolygonBackgroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::PolygonBackgroundBase::*)() )&osg::PolygonBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::PolygonBackgroundBase::*)() const)&osg::PolygonBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::PolygonBackgroundBase::getContainerSize)
        //.def("getMaterial", (osg::MaterialPtr& (osg::PolygonBackgroundBase::*)() )&osg::PolygonBackgroundBase::getMaterial, return_value_policy< copy_const_reference >())
        .def("getMaterial", (const osg::MaterialPtr& (osg::PolygonBackgroundBase::*)() const)&osg::PolygonBackgroundBase::getMaterial, return_value_policy< copy_const_reference >())
        //.def("getNormalizedX", (bool& (osg::PolygonBackgroundBase::*)() )&osg::PolygonBackgroundBase::getNormalizedX, return_value_policy< copy_const_reference >())
        .def("getNormalizedX", (const bool& (osg::PolygonBackgroundBase::*)() const)&osg::PolygonBackgroundBase::getNormalizedX, return_value_policy< copy_const_reference >())
        //.def("getNormalizedY", (bool& (osg::PolygonBackgroundBase::*)() )&osg::PolygonBackgroundBase::getNormalizedY, return_value_policy< copy_const_reference >())
        .def("getNormalizedY", (const bool& (osg::PolygonBackgroundBase::*)() const)&osg::PolygonBackgroundBase::getNormalizedY, return_value_policy< copy_const_reference >())
        .def("getTexCoords", (osg::Vec3f& (osg::PolygonBackgroundBase::*)(const osg::UInt32) )&osg::PolygonBackgroundBase::getTexCoords, return_value_policy< copy_non_const_reference >())
        .def("getTexCoords", (osg::MFVec3f& (osg::PolygonBackgroundBase::*)() )&osg::PolygonBackgroundBase::getTexCoords, return_value_policy< copy_non_const_reference >())
        //.def("getTexCoords", (const osg::MFVec3f& (osg::PolygonBackgroundBase::*)() const)&osg::PolygonBackgroundBase::getTexCoords, return_value_policy< copy_const_reference >())
        .def("getPositions", (osg::Pnt2f& (osg::PolygonBackgroundBase::*)(const osg::UInt32) )&osg::PolygonBackgroundBase::getPositions, return_value_policy< copy_non_const_reference >())
        //.def("getPositions", (osg::MFPnt2f& (osg::PolygonBackgroundBase::*)() )&osg::PolygonBackgroundBase::getPositions, return_value_policy< copy_const_reference >())
        .def("getPositions", (const osg::MFPnt2f& (osg::PolygonBackgroundBase::*)() const)&osg::PolygonBackgroundBase::getPositions, return_value_policy< copy_const_reference >())
        .def("setMaterial", &osg::PolygonBackgroundBase::setMaterial)
        .def("setNormalizedX", &osg::PolygonBackgroundBase::setNormalizedX)
        .def("setNormalizedY", &osg::PolygonBackgroundBase::setNormalizedY)
        .def("getBinSize", &osg::PolygonBackgroundBase::getBinSize)
        .def("copyToBin", &osg::PolygonBackgroundBase::copyToBin)
        .def("copyFromBin", &osg::PolygonBackgroundBase::copyFromBin)
        .def("create", &osg::PolygonBackgroundBase::create)
        .def("createEmpty", &osg::PolygonBackgroundBase::createEmpty)
        .def("shallowCopy", &osg::PolygonBackgroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("TexCoordsFieldId") = (int)osg::PolygonBackgroundBase::TexCoordsFieldId;
    scope().attr("NextFieldId") = (int)osg::PolygonBackgroundBase::NextFieldId;
    scope().attr("PositionsFieldId") = (int)osg::PolygonBackgroundBase::PositionsFieldId;
    scope().attr("NormalizedYFieldId") = (int)osg::PolygonBackgroundBase::NormalizedYFieldId;
    scope().attr("MaterialFieldId") = (int)osg::PolygonBackgroundBase::MaterialFieldId;
    scope().attr("NormalizedXFieldId") = (int)osg::PolygonBackgroundBase::NormalizedXFieldId;

    delete osg_PolygonBackgroundBase_scope;

    class_< osg::PolygonBackground, bases< osg::PolygonBackgroundBase > , boost::noncopyable, osg::PolygonBackgroundRefPtr >("PolygonBackground", no_init)
        .def("clear", &osg::PolygonBackground::clear)
        .def("changed", &osg::PolygonBackground::changed)
        .def("dump", &osg::PolygonBackground::dump, osg_PolygonBackground_dump_overloads_0_2())
        .def("mapCoordinate", &osg::PolygonBackground::mapCoordinate)
    ;


    register_ptr_to_python<osg::PolygonBackgroundPtr>();
    implicitly_convertible<osg::PolygonBackgroundRefPtr, osg::PolygonBackgroundPtr>();
    implicitly_convertible<osg::PolygonBackgroundPtr, osg::BackgroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::PolygonBackgroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::PolygonBackgroundPtr>);
}

